function setCookies(key,value,iDays,path){
	var day=new Date();
	day.setDate(day.getDate()+iDays);
	document.cookie=key+"="+value+";expires="+day+";path="+path;
}
function getCookie(key){
	var str=document.cookie;
	var arr=str.split("; ");
	for(var i=0;i<arr.length;i++){
		var arr2=arr[i].split("=");
		if(arr2[0]==key){
			return arr2[1];
		}
	}
	return "";
}